package cn.flying.cloud.message.api;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import cn.flying.cloud.message.model.MessageRequest;

/**
 * 消息推送服务接口
 *
 * @author: admin
 * @date: 2025年03月26日 12:32
 * @version: 1.0
 */
public interface MessageServiceApi {

    /**
     * 发送短信
     *
     * @param request
     * @return
     */
    @PostMapping(value = "/sendSms")
    void sendSms(@RequestBody MessageRequest request);

    /**
     * 简单文本邮件
     *
     * @param request
     */
    @PostMapping(value = "/sendSimpleMail")
    void sendSimpleMail(@RequestBody MessageRequest request);

    /**
     * html邮件
     *
     * @param request
     */
    @PostMapping(value = "/sendHtmlMail")
    void sendHtmlMail(@RequestBody MessageRequest request);
}
